package com.example.operation.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class AdminDto {

    @ApiModelProperty(value = "id")
    @NotNull(message = "ID不为空")
    private Integer id;
    //用户名称
    @ApiModelProperty(value = "用户名称")
    @NotBlank(message = "用户名称不为空")
    private String username;
    //密码
    @ApiModelProperty(value = "密码")
    @NotBlank(message = "密码不为空")
    private String password;

    @ApiModelProperty(value = "确认密码")
    @NotBlank(message = "密码不为空")
    private String passwords;
    //邮箱
    @ApiModelProperty(value = "邮箱")
    @NotBlank(message = "邮箱不为空")
    private String email;
    //手机号码
    @ApiModelProperty(value = "手机号码")
    @NotBlank(message = "手机号码不为空")
    private String phone;
    //是否可操作 1-是 0-否
    @ApiModelProperty(value = "是否可操作 1-是 0-否")
    @NotNull(message = "是否可操作不为空")
    private  Integer operable;
    //账号启用状态 1-启用 0-禁用
    @ApiModelProperty(value = "账号启用状态 1-启用 0-禁用")
    @NotNull(message = "账号启用状态不为空")
    private Integer usable;
    //状态 1-正常 0-删除
    @ApiModelProperty(value = "状态 1-正常 0-删除")
    @NotNull(message = "状态不为空")
    private Integer state;


}
